const fs = require("fs");
const path = require("path");

/*
    fs.readFileSync(filePath , {encoding: "", fag: ""});
*/ 

let filePath = path.join(__dirname , "test.txt");
let content = fs.readFileSync(filePath , {encoding:'utf8', flag:'r'});
console.log(content);